<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:replace="~{common/dialogCss :: dialogCss}"></head>
<body class="dialog">
	<div class="content">
		<div class="row">
			<div class="col-sm-12">
				<div class="portlet-body form">
					<form class="form-horizontal" id="department_add_form">
						<div class="form-body">
							<input type="hidden" name="parentId" th:value="${parentId}"/>
							<div class="form-group" th:if="${parentId!=null}">
								<label class="col-sm-2 control-label">上级部门:</label>
								<div class="col-sm-8">
									<input type="text" class="form-control input-sm col-sm-8" placeholder="上级部门" th:value="${parentName}" disabled/>
									<!-- <span class="error_tip"><span class="error_icon"></span>上级部门不能为空!</span> -->
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">部门名称:</label>
								<div class="col-sm-8">
									<input type="text" name="name" class="form-control input-sm col-sm-8" placeholder="部门名称" value=""></input>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 col-xs-12 control-label">状态:</label>
								<div class="col-sm-8">
										<label class="radio-inline"><input checked="checked" name="status" type="radio" value="1"/>启用</label>
										<label class="radio-inline"><input name="status" type="radio" value="0"/>禁用</label>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">排序:</label>
								<div class="col-sm-8">
									<input type="text" name="sort" class="form-control input-sm col-sm-8" placeholder="排序" value=""></input>
								</div>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
	<div th:replace="~{common/dialogJs :: dialogJs}">...</div>
	<script type="text/javascript">
		require(["./static/pages/scripts/system/department"], function(department){
			department.initAddDialog();
		});
	</script>
</body>
</html>